package com.sie.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sie.demo.entity.Menu;
import com.sie.demo.entity.Users;
import org.apache.ibatis.annotations.Mapper;
import org.omg.PortableInterceptor.INACTIVE;

import java.util.List;


/**
 * mybatis-plus只需要我们的Mapper继承 BaseMapper 就可以拥有crud能力
 */
@Mapper
public interface UserMapper extends BaseMapper<Users> {
//    插入用户并实现主键自增
    Integer add(Users users);

    List<Menu> findAllMenuByUserId(Integer userId);




}
